var path = require('path')
console.log(process.env.NODE_ENV)
global['$$is_dev'] = (process.env.NODE_ENV == 'development');
if($$is_dev){console.log('run in dev mode')}
global.rootRequire = function(name) {
    return require(path.join(__dirname, '../' ,name));
}

global.$$config =  rootRequire('./config')
